package com.yonyougov.cruxtestcase.component.uc.dto;

import com.yonyougov.cruxtestcase.dto.BaseTestReqDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDto  extends BaseTestReqDto {
    private Long id;
    @NotNull
    private String code;
    @NotNull
    private String name;
    @NotNull
    private OrgType belongType;
    @NotNull
    private Long organization;
    @NotNull
    private Boolean enabled;
    @NotNull
    private Boolean locked;
    /**
     * 组织类型
     */
    public enum OrgType{
        REGION,
        ORGUNIT,
        BANK,
    }
}
